cmake_minimum_required(VERSION 2.8.3)



project(Task)
set(CMAKE_BUILD_TYPE "release")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(OpenCV_DIR /usr/include/opencv2)
find_package(OpenCV REQUIRED)
if (NOT OpenCV_FOUND)
    message("No appropriate opencv package found.")
endif()

find_package(Eigen3 REQUIRED)
if (NOT Eigen3_FOUND)
    message("No appropriate libeigen3 package found.")
endif()


# find_package(OpenMP)
# if (OPENMP_FOUND)
#     set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
#     set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
# endif()

include_directories(
    .
    include/
    /usr/local/include
    ${OpenCV_INCLUDE_DIRS}
    ${EIGEN3_INCLUDE_DIR}
)

link_directories(
    /usr/local/lib
)

aux_source_directory(
    ./src SRC
)

add_executable(Task main.cpp
    ${SRC}
)

target_link_libraries(Task
    ${OpenCV_LIBS}
)
